package com.example.homeworkmutualevaluation.DTO;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.sql.Timestamp;

@Data
public class UndoHomework {
    private int id;
    private String cno;
    private String cname;
    private String title;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp deadline;

    public UndoHomework(int id, String cno, String cname, String title, Timestamp deadline) {
        this.id = id;
        this.cno = cno;
        this.cname = cname;
        this.title = title;
        this.deadline = deadline;
    }
}
